/**
 * 在线课题管理
 */

import request from "@/utils/request.js";

// 列表
export function getListApi(params) {
  return request({
    url: "/admin/onlineCourseware/vedio/list",
    method: "POST",
    params,
  });
}

// 添加
export function addListApi(params) {
  return request({
    url: "/admin/onlineCourseware/vedio/add",
    method: "POST",
    params,
  });
}

// 删除
export function delListApi(params) {
  return request({
    url: "/admin/onlineCourseware/vedio/remove",
    method: "POST",
    params,
  });
}

// 编辑
export function updateListApi(params) {
  return request({
    url: "/admin/onlineCourseware/vedio/edit",
    method: "POST",
    params,
  });
}

// 上传文件
export function uploadImgApi(params) {
  return request({
    url: "/file/upload",
    ContentType: 'multipart/form-data',
    method: "POST",
    params,
  })
}

//查询专业列表
export function majorListApi(params) {
  return request({
    url: '/edu/major/list',
    method: 'POST',
    params
  })
}